package com.yc.thread.pro2_knn.knn;

import com.yc.thread.pro2_knn.bean.Sample;

/**
 * 距离计算接口
 * @author zwei
 * @create 2024-07-17 20:05
 */
public interface DistanceCalculator {
    /**
     * 计算两个样本之间的距离
     * @param s1
     * @param s2
     * @return
     */
    public double calculate(Sample s1,Sample s2);
}
